package com.zjy.pgcms.dto.project;

import com.zjy.pgcms.entity.Project;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 34343
 */
@Data
@AllArgsConstructor
public class ProjectDTO {
    private MultipartFile fileHead;
    private MultipartFile fileDetail;
    private Long id;
    private String name;
    private String category;
    private String description;
    private String descriptionDetail;
    private double price;

    public Project transformToProject(){
         return new Project(this.category, this.name, this.price, this.description, this.descriptionDetail);
    }
}
